package com.itbaizhan.config;

import org.springframework.http.client.ClientHttpResponse;
import org.springframework.web.client.ResponseErrorHandler;

import java.io.IOException;

/**
 * @author spf
 * @date 2024/5/10
 * @time 16:17
 */

/**
 * 自定义异常处理类
 */
public class CustomerResponseHandler implements ResponseErrorHandler {
    @Override
    public boolean hasError(ClientHttpResponse response) throws IOException {
        return false; // 不抛异常
    }

    // 不做处理
    @Override
    public void handleError(ClientHttpResponse response) throws IOException {

    }
}
